def run(params:list[str]):
    from ApiTools import apiTools,apiBase
    from langchain_core.tools import Tool, tool

    #db_connection=apiBase.getLLMConnect()
    #问题
    prompt=apiBase.argv(1,"调用 echo工具,参数:5L2g5aW9 ")
    #多个工具采用分号分隔多个url
    api_url=apiBase.argv(2,"http://127.0.0.1:8082/88api/webssh/echo.hpl;")
    #采用工具名称分号分隔多个name
    api_name=apiBase.argv(3,"echo工具;")

    try:
        #创建临时agent
        agent_tools=apiTools.load_api_tools(api_url, api_name)
        agent_executor = apiTools.create_agent(agent_tools)
        if agent_executor:
            ret = apiTools.agent_query(agent_executor,prompt)
            print(ret)
        else:
            print("创建agent错误:1:api和apiname的个数不同;2:api错误;")
    except Exception as e:
        print(f"llm调用错误:{e}")
    finally:
        apiBase.close()